function draw(tm) {
    masterDraw();

    for (var i = 0; i < objects.length; i++) {
        var o = objects[i];
        if (in2dWorld) { o.draw(); }
        else { o.drawGl(); }
    }
}

function HudObject() {}
HudObject.prototype.update = function() { }
HudObject.prototype.draw = function() { this.drawTo(gameInfo); }
HudObject.prototype.drawGl = function() { this.draw(); }

var timer;


function addTimer() {
    timer = new Timer();
    hud_objects.push(timer);
}

function readObject(text) {
    return jQuery.parseJSON(text);
}

function readObjectFile(file) {

}

PhysicsObject.prototype.draw = function(){};
PhysicsObject.prototype.drawGl = function(){};

PhysicsObject.prototype.makeInvisible = function(){
    this.draw = function() {};
    this.drawGl = function() {};
    return this;
};
